CFILES= buzzlock.c linked_list.c hash_table.c
CFLAGS= -fopenmp -lpthread -lrt

all: 
	gcc $(CFILES) $(CFLAGS) -o buzzlock

lib: 
	gcc -c -fPIC $(CFILES) $(CFLAGS) 
	gcc -shared -W1,-soname,buzzlock.so.1 -o libbuzzlock.so.1.0.1 buzzlock.o

clean:
	rm buzzlock buzzlock.o

debug: buzzlock.c buzzlock.h
	gcc $(CFILES) $(CFLAGS) -g -o buzzlock

test:
	gcc testLowBlack.c -o lowBlack -fopenmp -lpthread -lrt
	gcc testHighBlack.c -o highBlack -fopenmp -lpthread -lrt
	gcc -I. -o test $(TFILES) -lbuzzlock -L. -Wl,-rpath,`pwd` -lrt -lpthread -fopenmp